package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.ReviewContent1;
import com.ruoyi.system.mapper.ReviewContentMapper1;
import com.ruoyi.system.service.IReviewContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname ReviewContentServiceImpl
 * @Description
 * @Date 2025/5/20 20:32
 * @Created by 湖北彭于晏
 */
@Service
public class ReviewContentServiceImpl implements IReviewContentService {
    @Autowired
    private ReviewContentMapper1 reviewContentMapper;

    @Override
    public void insert(ReviewContent1 reviewContent) {
        reviewContentMapper.insert(reviewContent);
    }

    @Override
    public void delete(String id) {
        reviewContentMapper.deleteById(id);
    }



    @Override
    public List<ReviewContent1> list() {
        return reviewContentMapper.findAll();
    }

    @Override
    public ReviewContent1 getById(String id) {
        return reviewContentMapper.findById(id).get();
    }
}